<template>
  <Tree :data="data"></Tree>
</template>

<script setup lang="ts">
import Tree from './递归/tree.vue'
import { reactive } from 'vue';
// 层级不确定
import type { TreeList } from './tree'

const data = reactive<TreeList[]>([{
  name:'1',
  icon:'1',
  children:[
    {
      name:'1-1'
    },
    {
      name:'1-2'
    }
  ]
}])

</script>

<style lang='scss' scoped>

</style>
